My file bash, and configurate for linux
vi /etc/network/interfaces
        # dynamic
auto eth0
iface eth0 inet dhcp
# static
auto eth0
iface eth0 inet static
    address 192.168.10.1
    netmask 255.255.255.0
    network 192.168.10.0
    broadcast 192.168.10.255
    gateway 192.168.10.1
    # dns 8.8.8.8
    dns-nameservers 127.0.0.1
    dns-search ippbx.briker.lan
    post-up iptables-restore < /etc/iptables.up.rules
/etc/init.d/networking restart
service networking restart